-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add compatibility with Gnome-Shell < 3.34 - for example RHEL 8 with 3… #790
base: master
Are you sure you want to change the base?
Add compatibility with Gnome-Shell < 3.34 - for example RHEL 8 with 3… #790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not across what GObject.registerClass
is for, but I reckon it'd be nicer to deduplicate the code - something like:
const smDialogClass = class SystemMonitor_smDialog extends ModalDialog.ModalDialog {
// ...
}
const smDialog = (shell_Version >= '3.34') ? GObject.registerClass(smDialogClass) : smDialogClass
Hello, Totally agree with you about deduplicating code. https://wiki.gnome.org/Attic/GnomeShell/Extensions/Writing#Version_Compatibility As I didn't wanted to modify the original code, I just duplicate it and wrap it or not in the registerClass call. Do you think a new proposal is needed? Or will you implement your proposal? Thank you for your comment. Cordially, -- |
4a479ad
to
4d1e1bc
Compare
Hello, I've updated the change proposal according to your advice to not duplicate code. I would be very pleased if you could give me your opinion on a proposal of the form suggested here: A patch against the actual proposal would look like this:
This form has not been tested, and I don't measure the impact of switching from Any comment are welcome. Cordially, -- |
….32.2 ModalDialog was converted to GObject.registerClass in 3.34 Signed-off-by: NVieville <[email protected]>
4d1e1bc
to
3c08b93
Compare
Hello, The pull request have been updated according to my last message and as suggested here: This new way to add compatibility with Gnome-Shell < 3.34 has been tested successfully on Fedora 37 and RHEL 8. Hope this will help to provide this extension to these distributions. Cordially, -- |
Hello,
Just hitting this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=2184351
This pull request helps to resolve this issue:
Add compatibility with Gnome-Shell < 3.34 - for example RHEL 8 with 3.32.2
ModalDialog was converted to GObject.registerClass in 3.34
According to:
https://access.redhat.com/product-life-cycles?product=Red%20Hat%20Enterprise%20Linux,OpenShift%20Container%20Platform%204
RHEL 8 will be maintained until may 31 2029, and maybe until may 2031, so it's
probably worth keeping its users have this extension working.
Cordially,
--
NVieville